<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*分组选择器*/
        #d1,.c1{
            color: fuchsia;
        }
        /*属性选择器*/
        [type]{
            color: fuchsia;
        }
        [type="text"]{
            background-color: cadetblue;
        }
        [type="password"]{
            background-color: cadetblue;
        }
        /*任意元素选择器*/
        *{/*边框  :粗细  实线边框  颜色*/
            border: 1px solid yellowgreen;
        }
    </style>
</head>
<body>
<input type="text">
<input type="password">
<div id="d1">div1</div>
<div>div2</div>
<div class="c1">div3</div>
<span>span1</span>
<span>span2</span>
<span class="c1">span3</span>
</body>
</html>